<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
 
<body>
  <script>
    for (var i = 1; i <= 9; i++) {
      var s = '';
      document.write("<div>")
      for (var j = 1; j <= i; j++) {
        s = j + '*' + i + '=' + (i * j) + '\t'
        document.write("<span style='border: 1px solid blue;display:inline-block;width:80px;text-align:center'>" + s + "</span>")
      }
     document.write("</div>")
    }

    function odd() {
        let tr=document.getElementsByTagName("tr")
        for(let i=1;i<tr.length;i++){
            if (i%2 != 1){
                // tr[i].style.backgroundColor="blue";
                // tr[i].style.background="blue";
                tr[i].style.cssText="background-color: blue"
            }
        }
    }
  </script>
</body>

</html>